package com.tianaceae.educational.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教务科目对象 edu_subject
 * 
 * @author zhouhonggang
 * @date 2023-03-28
 */
public class EduSubject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String subjectName;

    /** 科目权重 */
    @Excel(name = "科目权重")
    private Long subjectWeight;

    /** 乐观锁 */
    private Long revision;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSubjectName(String subjectName) 
    {
        this.subjectName = subjectName;
    }

    public String getSubjectName() 
    {
        return subjectName;
    }
    public void setSubjectWeight(Long subjectWeight) 
    {
        this.subjectWeight = subjectWeight;
    }

    public Long getSubjectWeight() 
    {
        return subjectWeight;
    }
    public void setRevision(Long revision) 
    {
        this.revision = revision;
    }

    public Long getRevision() 
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("subjectName", getSubjectName())
            .append("subjectWeight", getSubjectWeight())
            .append("revision", getRevision())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
